package com.model;

/**
 * Bpm_bis_itemId entity. @author MyEclipse Persistence Tools
 */

public class Bpm_bis_itemId implements java.io.Serializable {

	// Fields

	private String bpm_typ_id_fk;
	private String typ_ec_code_fk;
	private Integer data_seq;

	// Constructors

	/** default constructor */
	public Bpm_bis_itemId() {
	}

	/** full constructor */
	public Bpm_bis_itemId(String bpm_typ_id_fk, String typ_ec_code_fk,
			Integer data_seq) {
		this.bpm_typ_id_fk = bpm_typ_id_fk;
		this.typ_ec_code_fk = typ_ec_code_fk;
		this.data_seq = data_seq;
	}

	// Property accessors

	public String getBpm_typ_id_fk() {
		return this.bpm_typ_id_fk;
	}

	public void setBpm_typ_id_fk(String bpm_typ_id_fk) {
		this.bpm_typ_id_fk = bpm_typ_id_fk;
	}

	public String getTyp_ec_code_fk() {
		return this.typ_ec_code_fk;
	}

	public void setTyp_ec_code_fk(String typ_ec_code_fk) {
		this.typ_ec_code_fk = typ_ec_code_fk;
	}

	public Integer getData_seq() {
		return this.data_seq;
	}

	public void setData_seq(Integer data_seq) {
		this.data_seq = data_seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bpm_bis_itemId))
			return false;
		Bpm_bis_itemId castOther = (Bpm_bis_itemId) other;

		return ((this.getBpm_typ_id_fk() == castOther.getBpm_typ_id_fk()) || (this
				.getBpm_typ_id_fk() != null
				&& castOther.getBpm_typ_id_fk() != null && this
				.getBpm_typ_id_fk().equals(castOther.getBpm_typ_id_fk())))
				&& ((this.getTyp_ec_code_fk() == castOther.getTyp_ec_code_fk()) || (this
						.getTyp_ec_code_fk() != null
						&& castOther.getTyp_ec_code_fk() != null && this
						.getTyp_ec_code_fk().equals(
								castOther.getTyp_ec_code_fk())))
				&& ((this.getData_seq() == castOther.getData_seq()) || (this
						.getData_seq() != null
						&& castOther.getData_seq() != null && this
						.getData_seq().equals(castOther.getData_seq())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBpm_typ_id_fk() == null ? 0 : this.getBpm_typ_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getTyp_ec_code_fk() == null ? 0 : this.getTyp_ec_code_fk()
						.hashCode());
		result = 37 * result
				+ (getData_seq() == null ? 0 : this.getData_seq().hashCode());
		return result;
	}

}